import request from "@/utils/request";
// 获取sku列表
export const reqSkuList = (page, limit) =>
  request({
    url: `/admin/product/list/${page}/${limit}`,
    method: "get",
  });

// 商品上架 /admin/product/onSale/{skuId} get
export const reqSale = (skuId) =>
  request({
    url: `/admin/product/onSale/${skuId}`,
    method: "get",
  });

// 商品下架的接  /admin/product/cancelSale/{skuId}  get
export const reqCanel = (skuId) =>
  request({
    url: `/admin/product/cancelSale/${skuId}`,
    method: "get",
  });

// 获取sku详情的接口 /admin/product/getSkuById/{skuId} get
export const reqSkuById = (skuId) =>
  request({
    url: `/admin/product/getSkuById/${skuId}`,
    method: "get",
  });

// 删除sku 的操作 /admin/product/deleteSku/{skuId}  delete
export const reqDeleteSku = (skuId) =>
  request({
    url: `/admin/product/deleteSku/${skuId}`,
    method: "delete",
  });
